import os;
Import("env")

src = \
    Split("""
        #/src/Small/players.ads
        #/src/Small/creatures.ads
        #/src/Small/monsters.ads
        #/src/Small/directions.adb
        #/src/Small/items.adb
        #/src/Small/occupants.adb
        #/src/Small/parser.adb
        #/src/Small/rooms.adb
        #/src/Small/things.adb
        #/src/Small/ustrings.adb
        #/src/Small/world.adb        
    """);


adaLib = env.StaticLibrary('smlib', src);

exeEnv = env.Copy(LIBS = ['smlib', 'gnat']);
exeEnv.Append(LIBPATH = ['.']);
exeEnv.Append(ADAPATH = ["#/src/Small"]);
ada = exeEnv.Program('smexe', ["#/src/Small/small.adb"]);

env.Alias("a", [ada]);
env.Default("a");
